package shejimoshi.Bui;

public class Client {
    public static void main(String[] args) {
        KFCWaiter waiter = new KFCWaiter();

        MealBuilder builderA = new SubMealBuilderA();
        waiter.setMealBuilder(builderA);
        Meal mealA = waiter.construct();
        System.out.println("Meal A - Food: " + mealA.getFood() + ", Drink: " + mealA.getDrink());

        MealBuilder builderB = new SubMealBuilderB();
        waiter.setMealBuilder(builderB);
        Meal mealB = waiter.construct();
        System.out.println("Meal B - Food: " + mealB.getFood() + ", Drink: " + mealB.getDrink());
    }
}
